Fix size_allocate to pass on to the child even if child isn't visible.
Also locate child at (border_width, border_width) not (0,0)
+1998-05-22 <sopwith@redhat.com>
+
+ * gtk/gtkeventbox.c: Pass size_allocate on to the child
+ regardless of whether it is visible or not. Also
+ locate child at (border_width,border_width), not (0,0)
+
Fri May 22 03:02:40 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkhandlebox.c: Added style_set handler.
+1998-05-22 <sopwith@redhat.com>
+
+ * gtk/gtkeventbox.c: Pass size_allocate on to the child
+ regardless of whether it is visible or not. Also
+ locate child at (border_width,border_width), not (0,0)
+
Fri May 22 03:02:40 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkhandlebox.c: Added style_set handler.
+1998-05-22 <sopwith@redhat.com>
+
+ * gtk/gtkeventbox.c: Pass size_allocate on to the child
+ regardless of whether it is visible or not. Also
+ locate child at (border_width,border_width), not (0,0)
+
Fri May 22 03:02:40 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkhandlebox.c: Added style_set handler.
+1998-05-22 <sopwith@redhat.com>
+
+ * gtk/gtkeventbox.c: Pass size_allocate on to the child
+ regardless of whether it is visible or not. Also
+ locate child at (border_width,border_width), not (0,0)
+
Fri May 22 03:02:40 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkhandlebox.c: Added style_set handler.
+1998-05-22 <sopwith@redhat.com>
+
+ * gtk/gtkeventbox.c: Pass size_allocate on to the child
+ regardless of whether it is visible or not. Also
+ locate child at (border_width,border_width), not (0,0)
+
Fri May 22 03:02:40 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkhandlebox.c: Added style_set handler.
+1998-05-22 <sopwith@redhat.com>
+
+ * gtk/gtkeventbox.c: Pass size_allocate on to the child
+ regardless of whether it is visible or not. Also
+ locate child at (border_width,border_width), not (0,0)
+
Fri May 22 03:02:40 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkhandlebox.c: Added style_set handler.
+1998-05-22 <sopwith@redhat.com>
+
+ * gtk/gtkeventbox.c: Pass size_allocate on to the child
+ regardless of whether it is visible or not. Also
+ locate child at (border_width,border_width), not (0,0)
+
Fri May 22 03:02:40 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkhandlebox.c: Added style_set handler.
widget->allocation = *allocation;
bin = GTK_BIN (widget);
- child_allocation.x = 0;
- child_allocation.y = 0;
+ child_allocation.x = GTK_CONTAINER (widget)->border_width;
+ child_allocation.y = GTK_CONTAINER (widget)->border_width;
child_allocation.width = MAX (allocation->width - GTK_CONTAINER (widget)->border_width * 2, 0);
child_allocation.height = MAX (allocation->height - GTK_CONTAINER (widget)->border_width * 2, 0);
child_allocation.height);
}
- if (bin->child && GTK_WIDGET_VISIBLE (bin->child))
+ if (bin->child)
{
gtk_widget_size_allocate (bin->child, &child_allocation);
}